﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using GraphCompiler.Core.SyntaxRepresentation;
using GraphCompiler.Core.ObjectModel.DiagramModel;

namespace GraphCompiler.Specification.SyntaxRepresentation
{
    public class BoxNodeSpecs
    {
        [TestFixture]
        public class when_generating_graph_for_node_without_properties
        {
            BoxNode _boxNode = new BoxNode("boxname");

            [Test]
            public void adds_box_with_correct_name_to_the_diagram()
            {
                var expectedDiagram = new Diagram();
                expectedDiagram.AddBox(new Box("boxname"));

                var actualDiagram = new Diagram();
                 _boxNode.AddToDiagram(actualDiagram);

                Assert.AreEqual(expectedDiagram, actualDiagram);
            }
        }
    }
}
